package com.ads.tpgrupo4.server.xml;

import org.w3c.dom.Document;

import sun.reflect.generics.reflectiveObjects.NotImplementedException;

public class StringBasedXmlSource implements XmlSource {

	private String content;

	public StringBasedXmlSource(final String content) {
		this.setContent(content);
	}
	
	@Override
	public Document getDocument() throws XmlSourceProcessingException {
		
		throw new XmlSourceProcessingException(new NotImplementedException());
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Override
	public String toString() {
		return this.content;
	}
}